package com.action.admin;

import java.util.*;

import com.db.admin.*;

public class ListAction {
	private int memno;
	private String pwd;
	private String admin;
	
	public void setMemno(int memno) {
		this.memno = memno;
	}

	private List<AdminMemberVO> list = new ArrayList<AdminMemberVO>();
	

	public void setAdmin(String admin) {
		this.admin = admin;
	}

	public List<AdminMemberVO> getList() {
		return list;
	}
	

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	
	public String execute()throws Exception
	{
		System.out.println(admin);
		System.out.println(memno);
		System.out.println(pwd);
		
		AdminMemberVO vo = new AdminMemberVO();
		vo=AdminMemberDAO.adminMemberGetData(memno);
		System.out.println(vo);
		
		if(admin.equals(vo.getAdmin())&& pwd.equals(vo.getPwd()))
		{
			list=AdminMemberDAO.adminMemberAllData();
		}
		return "success";		
	}
}
